package org.lzy.pt.bean;
import org.apache.commons.lang.time.DateFormatUtils;

public class Task {
	
	private String username;
	private String T_DateTime;
	private String T_Name;
	private String T_ExecDateTime;
	private String T_Para;
	private int T_Cnt;
	private int T_Interval;
	private int T_MainVer;
	private int T_TaskVer;
	private String T_FuncName;
	private int T_FuncVer;
	private int T_CompleteFlag;

	public Task() {
	}
	
	public Task(String username, String t_DateTime, String t_Name,
			String t_ExecDateTime, String t_Para, int t_Cnt, int t_Interval,
			int t_MainVer,int t_TaskVer, String t_FuncName, int t_FuncVer, int t_CompleteFlag) {
		super();
		this.username = username;
		T_DateTime = t_DateTime;
		T_Name = t_Name;
		T_ExecDateTime = t_ExecDateTime;
		T_Para = t_Para;
		T_Cnt = t_Cnt;
		T_Interval = t_Interval;
		T_MainVer = t_MainVer;
		T_FuncName = t_FuncName;
		T_FuncVer = t_FuncVer;
		T_CompleteFlag = t_CompleteFlag;
		T_TaskVer = t_TaskVer;
	}

	public int getT_TaskVer() {
		return T_TaskVer;
	}

	public void setT_TaskVer(int t_TaskVer) {
		T_TaskVer = t_TaskVer;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getT_DateTime(boolean formated) {
		if(formated){
			return DateFormatUtils.format(Long.parseLong(T_DateTime),"yyyy-MM-dd HH:mm:ss");
		}else{
			return T_DateTime;
		}
	}
	
	public String getT_DateTime() {
		return T_DateTime;
	}

	public void setT_DateTime(String t_DateTime) {
		T_DateTime = t_DateTime;
	}

	public String getT_Name() {
		return T_Name;
	}

	public void setT_Name(String t_Name) {
		T_Name = t_Name;
	}

	public String getT_ExecDateTime(boolean formated) {
		if(formated){
			return DateFormatUtils.format(Long.parseLong(T_ExecDateTime),"yyyy-MM-dd HH:mm:ss");
		}else{
			return T_ExecDateTime;
		}
	}
	
	public String getT_ExecDateTime() {
		return T_ExecDateTime;
	}

	public void setT_ExecDateTime(String t_ExecDateTime) {
		T_ExecDateTime = t_ExecDateTime;
	}

	public String getT_Para() {
		return T_Para;
	}

	public void setT_Para(String t_Para) {
		T_Para = t_Para;
	}

	public int getT_Cnt() {
		return T_Cnt;
	}

	public void setT_Cnt(int t_Cnt) {
		T_Cnt = t_Cnt;
	}

	public int getT_Interval() {
		return T_Interval;
	}

	public void setT_Interval(int t_Interval) {
		T_Interval = t_Interval;
	}

	public int getT_MainVer() {
		return T_MainVer;
	}

	public void setT_MainVer(int t_MainVer) {
		T_MainVer = t_MainVer;
	}

	public String getT_FuncName() {
		return T_FuncName;
	}

	public void setT_FuncName(String t_FuncName) {
		T_FuncName = t_FuncName;
	}

	public int getT_FuncVer() {
		return T_FuncVer;
	}

	public void setT_FuncVer(int t_FuncVer) {
		T_FuncVer = t_FuncVer;
	}

	public int getT_CompleteFlag() {
		return T_CompleteFlag;
	}

	public void setT_CompleteFlag(int t_CompleteFlag) {
		T_CompleteFlag = t_CompleteFlag;
	}

}
